package com.zjq.smartdevice.service;

import com.github.pagehelper.PageInfo;
import com.zjq.smartdevice.pojo.SysCategory;

import java.util.List;

/**
 * @User zhangjiaqi
 * @Project project
 * @Package com.zjq.smartdevice.service
 * @Date 2022/3/17 15:21
 */
public interface SysCategoryService {

    void addSysCategory(SysCategory sysCategory);

    SysCategory findById(Long id);

    PageInfo<SysCategory> findByPage(int pageSize, int pageNum, String categoryName);

    int updateCategory(SysCategory category);

    /**
     * 根据id删除数据
     * @param ids 要删除的数据的主键,如果要删除一个就是集合中只有一条数据
     * @return
     */
    int deleteByIds(List<Long> ids);

}
